import { ICondition } from '../../../interfaces';
import service from './service';

export default async function python(spaceid: string, systemid: string, refsystemid: string, modelid: string, condition: ICondition) {
	const params = {
		condition: condition || {
			paging: {
				index: 1,
				size: 12
			},
			param: {},
			sort: {}
		},
		modelid: 'custom::py_' + modelid,
		refsystemid,
		spaceid,
		systemid
	};
	return await service(spaceid, 'dataservice.py', params);
	// return JSON.parse(data);
}
